package com.virtium.vpm.dao;



import java.util.List;

import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.criterion.Example;

import com.virtium.vpm.exception.RecordNotFoundException;
import com.virtium.vpm.hibernate.model.Type;

public interface TypeDAO extends GenericDAO{
	public Type getTypeById(int id)throws RecordNotFoundException;
	public void save(Type transientInstance);

	public void delete(Type persistentInstance);

	public Type findById(java.lang.Integer id);

	public List findByExample(Type instance);

	public List findByProperty(String propertyName, Object value);

	public List findByName(Object name);

	public List findAll();

	public Type merge(Type detachedInstance);

	public void attachDirty(Type instance);

	public void attachClean(Type instance);	
}
